import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-05-18
 * Time: 15:25
 */
public class Test020 {
    public static void main(String[] args) {
        int[][] a = {{1, 2, 3}, {4, 5, 6}};
        System.out.println(Arrays.deepToString(a));
        for (int i = 0; i < a.length; i++) {
            for (int i1 = 0; i1 < a[0].length; i1++) {
                System.out.print(a[i][i1] + " ");
            }
            System.out.print("||");
        }
        System.out.println();
        for (int[] b : a) {
            for (int x : b) {
                System.out.print(x + " ");
            }

        }
    }
}
